package com.m4;

import com.alibaba.excel.EasyExcel;
import org.json.simple.JSONArray;

import java.util.List;
public class Input {

    public static void main(String[] args) {
        String filePath = "D:/mDownloads/ChromeDown/E204_批发和零售财务状况.xlsx";
        List<UserEntity> list = EasyExcel.read(filePath).head(UserEntity.class).sheet().doReadSync();

        for (UserEntity userEntity : list) {
            System.out.println(userEntity.getAge()+""+userEntity.getName()+""+userEntity.getTime());
            System.out.println();
        }
       System.out.println(JSONArray.toJSONString(list));
        System.out.println();
    }

}
